home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5108 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.interlog.com!news
  2. From: Ray Zemaitis <zemaitis@interlog.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Borland C 4.5 - DialogBox error
  5. Date: Thu, 08 Feb 1996 08:05:46 -0800
  6. Organization: InterLog Internet Services
  7. Message-ID: <311A1F5A.4F2C@interlog.com>
  8. NNTP-Posting-Host: zemaitis.interlog.com
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0b6b (Win16; I)
  13.  
  14. Hi!
  15.  
  16. I can get this code to compile and run from the Borland IDE,
  17. but when I try to run the exe from an icon, it barfs. 
  18.  
  19.  
  20.  
  21.     if (DialogBox(hInst, "HH_EDIT_DLG", hWndSaved, lpProcDlg) == -1)
  22.     {
  23.         // I get this error every time!!!!!!!!!!
  24.         fprintf(log, "DIALOGBOX FAILS!!!\n");
  25.     }
  26.     else
  27.         fprintf(log, "DIALOGBOX ok\n");
  28.  
  29. The online documentation just says -1 is returned when unable to
  30. create the DialogBox, but gives no possible causes.
  31. I am quite certain all required DLL's are present. If anyone can
  32. point me in the right direction, I would greatly appreciate it.
  33. ( I am running NT 3.50, compiling 16-bit "C").
  34.  
  35. Thanks,
  36. Ray
  37.  
  38. zemaitis@interlog.com
  39.